package com.css.zfzx.fxpg.modules.percent.economicloss.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.percent.economicloss.repository.entity.FxEconomicLossEntity;
import com.css.zfzx.fxpg.modules.percent.economicloss.viewobjects.FxEconomicLossQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-11-17
 */

public interface FxEconomicLossService {

    JSONObject queryFxEconomicLosss(FxEconomicLossQueryParams queryParams, int curPage, int pageSize);

    FxEconomicLossEntity getFxEconomicLoss(String id);

    FxEconomicLossEntity saveFxEconomicLoss(FxEconomicLossEntity fxEconomicLoss);

    FxEconomicLossEntity updateFxEconomicLoss(FxEconomicLossEntity fxEconomicLoss);

    void deleteFxEconomicLosss(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    List<FxEconomicLossEntity> listFxEconomicLosss(FxEconomicLossQueryParams queryParams);

    void initialize();

    String exportExcel(FxEconomicLossQueryParams queryParams, HttpServletResponse response);

    String importExcel(MultipartFile file);
}
